<!DOCTYPE html>
<html class="x-admin-sm">

<head>
	{include file="public/head"}
</head>

<body>
	<div class="x-body">
		<blockquote class="layui-elem-quote">欢迎管理员：<span class="x-red">{$admin.username}</span>！当前时间:<span id="time"></span>
		</blockquote>
		<fieldset class="layui-elem-field">
			<legend>数据统计</legend>
			<div class="layui-field-box">
				<div class="layui-col-md12">
					<div class="layui-card">
						<div class="layui-card-body">
							<div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside"
								lay-arrow="none" style="width: 100%; height: 90px;">
								<div carousel-item="">
									<ul class="layui-row layui-col-space10 layui-this">
										<li class="layui-col-xs2">
											<a href="javascript:;" class="x-admin-backlog-body">
												<h3>课程数</h3>
												<p><cite>{$data.course|count}</cite></p>
											</a>
										</li>
										<li class="layui-col-xs2">
											<a href="javascript:;" class="x-admin-backlog-body">
												<h3>管理员数</h3>
												<p><cite>{$data.admins|count}</cite></p>
											</a>
										</li>
										<li class="layui-col-xs2">
											<a href="javascript:;" class="x-admin-backlog-body">
												<h3>幻灯片数</h3>
												<p>
													<cite>{$data.slide|count}</cite></p>
											</a>
										</li>
										<li class="layui-col-xs2">
											<a href="javascript:;" class="x-admin-backlog-body">
												<h3>文件数</h3>
												<p>
													<cite>{$data.file|count}</cite></p>
											</a>
										</li>
										<li class="layui-col-xs2">
											<a href="javascript:;" class="x-admin-backlog-body">
												<h3>内容数</h3>
												<p>
													<cite>{$data.content|count}</cite></p>
											</a>
										</li>
									</ul>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</fieldset>
		<fieldset class="layui-elem-field">
			<legend>系统信息</legend>
			<div class="layui-field-box">
				<table class="layui-table">
					<tbody>
						<tr>
							<th>服务器地址</th>
							<td>ycu.com</td>
						</tr>
						<tr>
							<th>操作系统</th>
							<td>windows 10</td>
						</tr>
						<tr>
							<th>运行环境</th>
							<td>Apache/2.4.39 - phpStudy/8.1.0.1</td>
						</tr>
						<tr>
							<th>PHP版本</th>
							<td>7.3.4</td>
						</tr>
						<tr>
							<th>MYSQL版本</th>
							<td>5.7.26</td>
						</tr>
						<tr>
							<th>ThinkPHP版本</th>
							<td>5.0.24</td>
						</tr>
						<tr>
							<th>Layui版本</th>
							<td>2.4.5</td>
						</tr>
					</tbody>
				</table>
			</div>
		</fieldset>
		<fieldset class="layui-elem-field">
			<legend>开发团队</legend>
			<div class="layui-field-box">
				<table class="layui-table">
					<tbody>
						<tr>
							<th>版权所有</th>
							<td>liwenlong</td>
						</tr>
						<tr>
							<th>开发者</th>
							<td>李文龙（2016100342）</td>
						</tr>
					</tbody>
				</table>
			</div>
		</fieldset>
	</div>
	<script>
		$(function () {
			$('#time').text(new Date().Format("yyyy-MM-dd HH:mm:ss"))
			setInterval(function () {
				$('#time').text(new Date().Format("yyyy-MM-dd HH:mm:ss"))
			}, 1000)
		})
		Date.prototype.Format = function (fmt) { //author: meizz   
			var o = {
				"M+": this.getMonth() + 1, //月份   
				"d+": this.getDate(), //日   
				"H+": this.getHours(), //小时   
				"m+": this.getMinutes(), //分   
				"s+": this.getSeconds(), //秒   
				"q+": Math.floor((this.getMonth() + 3) / 3), //季度   
				"S": this.getMilliseconds() //毫秒   
			};
			if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
			for (var k in o)
				if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
			return fmt;
		} 
	</script>
</body>

</html>